package com.qyer.lxp.model.booklimits.normal;

import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;

/**
 * 预定限制
 * Created by wangzhen on 16/5/10.
 */
@XmlRootElement(name = "book-limit")
@XmlAccessorType(XmlAccessType.FIELD)
public class BookLimit implements Serializable{

    private static final long serialVersionUID = -1051070707474561214L;

    /**
     * 最大预订数(假设此项目有成人、儿童、婴儿,则3个规格的购买总数不大于最大
     预订数), int型,0表示没有限制
     */
    @XmlElement(name = "max-book-num")
    private String maxBookNum;

    /**
     * 销售编码
     */
    @XmlElement(name = "sale-code")
    private String saleＣode;

    /**
     * <!—旅客信息限制 -->
     */
    @XmlElement(name = "traveler-limits")
    private TravelerLimit travelerLimits;

    /**
     * <!—支持的快递类型 -->
     */
    @XmlElementWrapper(name = "delivery-types")
    @XmlElement(name = "delivery-type")
    private List<DeliveryType> deliveryTypes;

    /**
     * 是否接受客人自填接人地址
     */
    @XmlElement(name = "pickup-on-demand")
    private String pickupOnDemand;

    /**
     * 是否接受客人自填送人地址
     */
    @XmlElement(name = "dropoff-on-demand")
    private String dropoffOnDemand;

    /**
     * 是否接人
     */
    @XmlElement(name = "pickup")
    private String pickup;

    /**
     * <!—问题 -->
     */
    @XmlElementWrapper(name = "questions")
    @XmlElement(name = "question")
    private List<BookQuestion> questions;


    public String getMaxBookNum() {
        return maxBookNum;
    }

    public void setMaxBookNum(String maxBookNum) {
        this.maxBookNum = maxBookNum;
    }

    public String getSaleＣode() {
        return saleＣode;
    }

    public void setSaleＣode(String saleＣode) {
        this.saleＣode = saleＣode;
    }

    public TravelerLimit getTravelerLimits() {
        return travelerLimits;
    }

    public void setTravelerLimits(TravelerLimit travelerLimits) {
        this.travelerLimits = travelerLimits;
    }

    public List<DeliveryType> getDeliveryTypes() {
        return deliveryTypes;
    }

    public void setDeliveryTypes(List<DeliveryType> deliveryTypes) {
        this.deliveryTypes = deliveryTypes;
    }

    public String getPickupOnDemand() {
        return pickupOnDemand;
    }

    public void setPickupOnDemand(String pickupOnDemand) {
        this.pickupOnDemand = pickupOnDemand;
    }

    public String getDropoffOnDemand() {
        return dropoffOnDemand;
    }

    public void setDropoffOnDemand(String dropoffOnDemand) {
        this.dropoffOnDemand = dropoffOnDemand;
    }

    public String getPickup() {
        return pickup;
    }

    public void setPickup(String pickup) {
        this.pickup = pickup;
    }

    public List<BookQuestion> getQuestions() {
        return questions;
    }

    public void setQuestions(List<BookQuestion> questions) {
        this.questions = questions;
    }
}
